package com.hehe.powernode.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value="com-hehe-pojo-UndoLog")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "undo_log")
public class UndoLog implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    @TableField(value = "branch_id")
    @ApiModelProperty(value="")
    private Long branchId;

    @TableField(value = "xid")
    @ApiModelProperty(value="")
    private String xid;

    @TableField(value = "context")
    @ApiModelProperty(value="")
    private String context;

    @TableField(value = "rollback_info")
    @ApiModelProperty(value="")
    private int[] rollbackInfo;

    @TableField(value = "log_status")
    @ApiModelProperty(value="")
    private Integer logStatus;

    @TableField(value = "log_created")
    @ApiModelProperty(value="")
    private Date logCreated;

    @TableField(value = "log_modified")
    @ApiModelProperty(value="")
    private Date logModified;

    @TableField(value = "ext")
    @ApiModelProperty(value="")
    private String ext;

    private static final long serialVersionUID = 1L;
}